package com.yuw.oop.lianxi;

public class Student extends Person {
	// 属性
	private double courseScore;
	// 行为

	public double getCourseScore() {
		return courseScore;
	}

	@Override
	public void printMe() {
		// 调用父类的被覆盖的方法，打印姓名、姓名、年龄信息
		super.printMe();
		// 打印学生新扩展的信息
		System.out.println("所学课程成绩：" + this.getCourseScore());
	}

	public void setCourseScore(double courseScore) {
		this.courseScore = courseScore;
	}

	public Student(String perName, String perSex, int perAge, double courseScore) {
		super(perName, perSex, perAge);
		this.courseScore = courseScore;
	}

	public Student() {
		super();
		// TODO Auto-generated constructor stub
	}

}
